{include file="public/head"/}
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>后台管理</cite></a>
        <a><cite>企业信息管理中心</cite></a>
        <a><cite>储值券充值记录</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="#">
            <div class="layui-input-inline">
                <select name="out_parking_id" lay-filter="commname" id="commname">
                    <option value="">所属停车场</option>
                    {foreach $parkinglist as $v}
                    <option value="{$v.parkingNo}" {if isset($parkingNo)}{if $parkingNo == $v.parkingNo} selected {/if}{/if}>{$v.parkingName}</option>
                    {/foreach}
                </select>
            </div>
            <input type="text" name="car_number"  placeholder="车牌" autocomplete="off" class="layui-input" value="{if isset($car_number)}{$car_number}{/if}">
            <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        
        <button class="layui-btn layui-btn-danger" onclick="rechargeDump('{$export}')"><i class="layui-icon"></i>批量导出</button></button>
        <span class="x-right" style="line-height:40px">共有数据：{$number} 条</span>
    </xblock>
    <table class="layui-table"  style="text-align: center;">
        <thead>
        <tr>
            <th style="text-align: center; font-size: 16px; height: 30px;">车牌</th>
            <th style="text-align: center; font-size: 16px;">所属停车场</th>
            <th style="text-align: center; font-size: 16px;">充值金额</th>
			<th style="text-align: center; font-size: 16px;">备注</th>
			
            <th style="text-align: center; font-size: 16px;">充值时间</th>
            
        </tr>
        </thead>
        <tbody>
        {foreach $list as $v}
        <tr>
            <td style="text-align: center;">{$v.car_number}</td>
            <td style="text-align: center;">{$v.parkingName}</td>
            <td style="text-align: center;">{$v.money}</td>
			<td style="text-align: center;">{$v.remark}</td>
            <td style="text-align: center;">{$v.create_time|date="Y-m-d H:i:s"}</td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    <div class="page">
        <div>
            {$list->render()}
        </div>
    </div>

</div>

<script>
    function repairSolve(id){
        layer.open({
            type: 1,
            skin: 'x-right', //样式类名
            closeBtn: 0, //不显示关闭按钮
            anim: 2,
            shadeClose: true, //开启遮罩关闭
            area: ['80%', '180px'],
            content:
            '<div style="padding: 20px 100px; font-size:18px">'+
            '支付宝支付链接：https://www.fqsc.zfbzhsq.com/index/Coupon/couponParkSend?coupon_id=' + id
        });
    }

    //删除
    function couponDel(id){
        if(confirm('确定要删除吗?'))
        {
            var url = "{:url('couponParkDel')}?id=" + id;
            // console.log(url)
            $('#' + id).attr('href', url)
        }
        return false;
    }
    //编辑
    function couponEdit(id){
        if(confirm('确定要删除吗?'))
        {
            var url = "{:url('fixCouponDel')}?id=" + id;
            // console.log(url)
            $('#' + id).attr('href', url)
        }
        return false;
    }

    //批量导出
    function rechargeDump(exportid){
        var url = "{:url('rechargedump')}?&exportid=" + exportid;
        layer.open({
            type: 2,
            title: '批量导出账单',
            shadeClose: true,
            shade: 0.8,
            area: ['60%', '60%'],
            content: url //iframe的url
        });
    }
</script>
<script>
    var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>

</html>